<template>
  <a-button type="primary" @click="openNotification">
    Open the notification box
  </a-button>
</template>
<script>

const key = 'updatable';
export default {
  methods: {
    openNotification() {
   const confi =   this.$confirm({
    title:'确认删除吗？',
    okText: '是',
    cancelText: '否',
    icon: 'exclamation-circle',
    loading:false,
    cancel:this.cancelFn(),
    confirm:this.fn()
  })
  },
  cancelFn(){
      console.log('关闭  ----->  ');
  },
  fn(){
      console.log('取消  ----->  ');
  }
}
}
</script>